import { createRouter, createWebHistory } from "vue-router";
import Login from "@/views/main/Login.vue";
const routes = [
    {
        path: "/",
        name: "home",
        component: () => import("@/views/main/index.vue"),
        meta: { title: "首页" },
    },
  {
    path: "/login",
    name: "login",
    component: Login,
    meta: { title: "登录" },
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});
export default router;
